package com.xtkj.accountjava.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName(value = "sys_account_book")
public class AccountBookEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private String imgPath;
    private String description;

    @TableField(exist = false)
    private List<AccountCategoryEntity> payOutCategories;
    @TableField(exist = false)
    private List<AccountCategoryEntity> incomeCategories;

}
